package com.tangpei.singleton
{
	public class Singleton
	{
		
		private static var _instance:Singleton;
		
		/**
		 * 
		 * @author TangPei
		 *  
		 */		
		public function Singleton()
		{
			
		}
		
		public static function getInstance():Singleton
		{
			if(_instance==null)
			{
				_instance=new Singleton();
			}
			return _instance;
		}
	}
}